project(SOCKET)
set(CMAKE_CXX_STANDARD 11)
cmake_minimum_required(VERSION 3.5)

file(GLOB src_list src/*.cpp
                   src/core/*.cpp
                   src/app/*.cpp
)

message(STATUS "build src file:" ${src_list})

include_directories(${PROJECT_SOURCE_DIR}/src)

add_executable(socket_server ${src_list})

set(exe_output_path ${PROJECT_SOURCE_DIR}/bin)
add_custom_command(TARGET socket_server POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:socket_server> ${exe_output_path})